<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Insert title here</title>

<link rel="stylesheet" href="jquery/jquery.mobile-1.0.1.min.css" /> 
<script src="jquery/jquery-1.7.1.min.js"></script> 
<script src="jquery/jquery.mobile-1.0.1.min.js"></script> 
<!-- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile.structure-1.0.1.min.css" />  -->
<!-- <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>  -->
<!-- <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>  -->


<script type="application/javascript" charset="utf-8" src="phonegap-1.4.1.js"></script>
<script type="application/javascript" charset="utf-8" src="barcodescanner.js"></script>
<!-- <script src="phonegap-1.4.1.js"></script> -->
<!-- <script src="barcodescanner.js"></script> -->

<script type="text/javascript">
//  	function openScanner() {
//  		alert("function start!!");
// //  		window.plugins.barcodeScanner.scan(BarcodeScanner.Type.QR_CODE,
//  		window.plugins.barcodeScanner.scan(BarcodeScanner.Type.ALL_CODE_TYPES,
//  				function(result) {
//  					alert("We got a barcode: " + result);
//  				}, function(error) {
//  					alert("Scanning failed: " + error);
//  				}, {
//  					yesString : "Install"
//  				});
//  		// 	BarcodeScanner.prototype.scan() ;
//  	}
 	
 	$(document).ready(function(){
 		
	 	$(".aa").click(function(){
	 		alert("ddd");
	 	});
	 	
	 	$(".registration").click(function(){
	 		window.plugins.barcodeScanner.scan(BarcodeScanner.Type.ALL_CODE_TYPES,
	 				function(result) {
	 	        alert("We got a barcode\n" +
	 	                  "결과: " + result + "\n" +
	 	                  "Result: " + result.text + "\n" +
	 	                  "Format: " + result.format + "\n" +
	 	                  "Cancelled: " + result.cancelled);
		 	    }, function(error) {
		 	        alert("Scanning failed: " + error);
		 	    }
		 	);

	 	});
// 	 	$(".registration").click(function(){
// 	 		window.plugins.barcodeScanner.scan(BarcodeScanner.Type.ALL_CODE_TYPES, 
// 	 				function(result) {
// 	 					alert("We got a barcode: " + result);
// 	 				}, function(error) {
// 	 					alert("Scanning failed: " + error);
// 	 				}, {
// 	 					yesString : "Install"
// 	 				});
// 	 	});
 	});
</script>
</head>

<body>
<button> content </button>
<!-- 			<input type="button" value="스캐너 열기" onclick="openScanner();"> -->
	<div data-role="page">
		<div data-role="header">
			<h1>PMS</h1>
		</div>
		<div data-role="content">
			<div class="registration" data-role="button"><h3>자산 등록</h3></div>
			<ul data-role="listview" data-inser="true" data-filter="true">
				<li><a href="#">aaa</a></li>
			</ul>
		</div>
		<div data-role="footer" data-position="fixed">
			<h4>SPC Networks 자산관리 시스템</h4>
		</div>
	</div>
</body>
</html>